package com.sgcc.pda.data.entity.base;

/**
 * File description.
 *
 * @author 王沛栋
 * @data 2018/1/19 16:17
 */

public class SharepreferenceInfo {
    /**
     * 对应sp editor的key
     */
    private String editorKey;

    /**
     * 对应sp editor的Mode
     * public static final int MODE_PRIVATE = 0x0000;
     * public static final int MODE_WORLD_READABLE = 0x0001;
     * public static final int MODE_WORLD_WRITEABLE = 0x0002;
     * public static final int MODE_APPEND = 0x8000;
     * public static final int MODE_MULTI_PROCESS = 0x0004;
     * public static final int MODE_ENABLE_WRITE_AHEAD_LOGGING = 0x0008;
     * public static final int MODE_NO_LOCALIZED_COLLATORS = 0x0010;
     */
    private int editorMode;

    /**
     * 存储的key
     */
    private String key;

    /**
     * 存储的值
     */
    private String value;

    /**
     * 存储类型
     *
     * 0 String; 1 int; 2 boolean 0代表false 1代表true; 3 float;4 long;5 Set<String>
     *
     */
    private int type;

    public String getEditorKey() {
        return editorKey;
    }

    public void setEditorKey(String editorKey) {
        this.editorKey = editorKey;
    }

    public int getEditorMode() {
        return editorMode;
    }

    public void setEditorMode(int editorMode) {
        this.editorMode = editorMode;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
